let logger = require('../helper/logger'),
  tagLogger = new logger.TagLogger('REDIS_MODEL'),
  {
    SHORT_MESSAGE_VALIDATE_CODE_KEY_PREFIX,
    SHORT_MESSAGE_CODE_EXPIRE_TIME,
  } = require('../../conf/const'),
  client = require('../helper/redis'),
  errorCode = require('../../conf/errorCode');

var storeMobileMsgCode = (exports.storeMobileMsgCode = function(
  mobile,
  msgCode,
) {
  client.set(
    SHORT_MESSAGE_VALIDATE_CODE_KEY_PREFIX + mobile,
    msgCode,
    'NX',
    'EX',
    SHORT_MESSAGE_CODE_EXPIRE_TIME,
  );
});

